import Vue from 'vue';
import Tpl from './app.vue';
import router from '../../router';//直接导入路由配置   
import store from '../../store';

import {AutoComplete,Popover,Steps,Skeleton,Tree,Checkbox,List,Radio,InputNumber,Cascader,Input,Tooltip,Table,Card,Tag,Spin,Row,Col,Divider,LocaleProvider,Transfer,DatePicker,Progress,Button,Select,Form, Tabs,Drawer, message,  notification, Layout,Avatar,Icon,Menu,Dropdown,Breadcrumb,Modal } from 'ant-design-vue';

Vue.prototype.$message = message;
Vue.prototype.$notification = notification;
Vue.prototype.$info = Modal.info;
Vue.prototype.$success = Modal.success;
Vue.prototype.$error = Modal.error;
Vue.prototype.$warning = Modal.warning;
Vue.prototype.$confirm = Modal.confirm;
Vue.use(AutoComplete);
Vue.use(Layout);
Vue.use(Avatar);
Vue.use(Icon);
Vue.use(Menu);
Vue.use(Dropdown);
Vue.use(Breadcrumb);
Vue.use(Modal);
Vue.use(Drawer);
Vue.use(Tabs);
Vue.use(Form);
Vue.use(Select);
Vue.use(Button);
Vue.use(Progress);
Vue.use(DatePicker);
Vue.use(Transfer);
Vue.use(LocaleProvider);
Vue.use(Divider);
Vue.use(Row);
Vue.use(Col);
Vue.use(Spin);

Vue.use(Card);
Vue.use(Tag);
Vue.use(Table);
Vue.use(Tooltip);
Vue.use(Input);
Vue.use(Cascader);
Vue.use(InputNumber);
Vue.use(Radio);
Vue.use(List);
Vue.use(Tree);
Vue.use(Checkbox);
Vue.use(Skeleton);
Vue.use(Steps);
Vue.use(Popover);

var echarts = require('echarts');
// 引入 ECharts 主模块
//var echarts = require('echarts/lib/echarts');
// 引入柱状图
// require('echarts/lib/chart/bar');
// require('echarts/lib/chart/line');
// require('echarts/lib/chart/scatter');
// require('echarts/lib/chart/effectScatter');
// require('echarts/lib/component/legendScroll');
// //require("echarts/lib/chart/radar");
// require('echarts/lib/chart/map');
// require('echarts/lib/component/geo');
// require('echarts/lib/component/dataZoom');
// require('echarts/lib/component/visualMap');

// // 引入提示框和标题组件
// require('echarts/lib/component/tooltip');
// require('echarts/lib/component/title');
Vue.prototype.$echarts = echarts ;
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(Tpl)
});